FROM ${imageUrl}

<#if auther ??>
MAINTAINER ${auther}
</#if>

<#if user ??>
USER ${user.key}:${user.value}
</#if>

<#if workDir ??>
WORKDIR ${workDir}
</#if>

<#if envList ??>
    <#list envList as env>
ENV  ${env.key}=${env.value}
    </#list>
</#if>

<#if addList ??>
    <#list addList as add>
ADD  ${add.key}  ${add.value}
    </#list>
</#if>

<#if runList ??>
    <#list runList as run>
RUN  ${run}
    </#list>
</#if>

<#if cmdList ??>
CMD [<#list cmdList as cmd>"${cmd}"<#if cmd_index+1 lt cmdList?size>,</#if></#list>]
</#if>

<#if volumeList ??>
CMD [<#list volumeList as volume>"${volume}"<#if volume_index+1 lt volumeList?size>,</#if></#list>]
</#if>

<#if exposePortList ??>
EXPOSE <#list exposePortList as port>${port}  </#list>
</#if>